<table width="100%">
<caption><h1><?=$caption?></h1><span><?=html::anchor(Router::$controller.'/create', '添加')?></span></caption>
<thead>
<tr>
	<th width="5%">ID</th>
	<th width="20%">Name</th>
	<th width="30%">标题</th>
	<th width="8%">开始日期</th>
	<th width="8%">结束日期</th>
	<th width="5%">开始时间</th>
	<th width="5%">结束时间</th>
	<th width="15%">操作</th>
</tr>
</thead>
<tbody id="myTable">
<?php foreach($datas as $data) { ?>
<tr>
	<td><?=$data->id?></td>
	<td><?=$data->name?></td>
	<td><?=$data->title_cn?></td>
	<td><?=$data->start_date?></td>
	<td><?=$data->end_date?></td>
	<td><?=$data->start_time?></td>
	<td><?=$data->end_time?></td>
	<td>
		<?=html::anchor(Router::$controller.'/edit/'.$data->id, 'Edit')?>
	</td>
</tr>
<?php } ?>
</tbody>
</table>
<script type="text/javascript" src="js/table.js"></script>
<?=html::script('js/table.js')?>
